import 'package:flutter/material.dart';

class IndexNavigatorItem extends StatelessWidget {

  final String title;

  final String subTitle;

  final String image;

  IndexNavigatorItem(this.title, this.subTitle, this.image);

  @override
  Widget build(BuildContext context) {
    return Container(
      height: 140,
      decoration: BoxDecoration(
        color: Color.fromRGBO(200, 200, 200, 0.5),
        borderRadius: BorderRadius.circular(10)
      ),
      padding: EdgeInsets.all(10),
      margin: EdgeInsets.all(10),
      child: Row(
        mainAxisAlignment: MainAxisAlignment.spaceBetween,
        children: [Column(
          crossAxisAlignment: CrossAxisAlignment.start,
          children: [
            Text(title,style: TextStyle(fontSize: 14,fontWeight: FontWeight.bold,color: Colors.black),),
            Text(subTitle,style: TextStyle(fontSize: 30,color: Colors.green),)],
        ),
          Image.asset('images/jin_du.png',width: 50,color: Colors.green,)
        ],
      ),
    );
  }
}
